package com.zc.framework.shiro.security;

/**
 * Created by zc on 2016/8/30.
 */
public class UsernamePasswordToken2 extends org.apache.shiro.authc.UsernamePasswordToken {
    private static final long serialVersionUID = 1L;
    private String captcha;
    private String dkeyAction;
    private String dkeyType;

    public String getCaptcha() {
        return this.captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public String getDkeyAction() {
        return this.dkeyAction;
    }

    public void setDkeyAction(String dkeyAction) {
        this.dkeyAction = dkeyAction;
    }

    public UsernamePasswordToken2() {
    }

    public UsernamePasswordToken2(String username, char[] password, boolean rememberMe, String host, String captcha) {
        super(username, password, rememberMe, host);
        this.captcha = captcha;
    }

    public UsernamePasswordToken2(String username, char[] password, boolean rememberMe, String host, String captcha, String dkeyAction, String dkeyType) {
        super(username, password, rememberMe, host);
        this.captcha = captcha;
        this.dkeyAction = dkeyAction;
        this.dkeyType = dkeyType;
    }

    public String getDkeyType() {
        return this.dkeyType;
    }

    public void setDkeyType(String dkeyType) {
        this.dkeyType = dkeyType;
    }
}
